package com.spring.event;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * ClassName: EventListener
 * Description: 事件监听器
 * Date: 2017/5/11 20:29
 *
 * @author SAM SHO
 * @version V1.0
 */
@Component
public class EventListener implements ApplicationListener<EventBean> {

    @Override
    public void onApplicationEvent(EventBean event) {
        System.out.println("监听到的数据： " + event.getMsg());
    }
}
